<?php
include_once 'library/confirm/LabelTandanFilterPost.class.php';

$item = new LabelTandanFilterPost();

	$current_date		= date("Y-m-d", time());
	$tgl_panen			= $_POST['tgl_panen'];
	$no_individu		= $_POST['no_individu'];
	$penanggung_jawab	= $_POST['penanggung_jawab'];
	$jml_pekerja		= $_POST['jml_pekerja'];
	$biaya_pekerja		= $_POST['biaya_pekerja'];
?>
<div class="title">Konfirmasi - Panen Biji Kelapa Sawit</div>
<form name="frm_<?=$subbagian;?>" id="frm_<?=$subbagian;?>" method="post" action="index.php?bagian=<?=$bagian;?>&subbagian=<?=$subbagian;?>&action=confirmed">
    <ul>
    	<li class="header"><span>Identitas Individu</span></li>
        <li><span>
            <label>Tanggal Panen:</label>
            <span class="confirm"><?=$_POST['tgl_panen'];?></span>
			<input type="hidden" name="tgl_panen" value="<?=$tgl_panen;?>" />
        </span></li>
         <li><span>
            <label>No Individu:</label>
            <span class="confirm"><?=$_POST['no_individu'];?></span>
			<input type="hidden" name="no_individu" value="<?=$no_individu;?>" />
        </span></li>
	</ul>
	<ul>
		<li class="header"><span>Pekerja</span></li>
		<li><span>
            <label>Penanggung Jawab:</label>
            <span class="confirm"><?=$_POST['penanggung_jawab'];?></span>
			<input type="hidden" name="penanggung_jawab" value="<?=$penanggung_jawab;?>" />
        </span></li>
		<li><span>
            <label>Jumlah Pekerja:</label>
            <span class="confirm"><?=$_POST['jml_pekerja'];?></span>
			<input type="hidden" name="jml_pekerja" value="<?=$jml_pekerja;?>" />
        </span></li>
		<li><span>
            <label>Total Biaya Pekerja:</label>
            <span class="confirm"><?=$_POST['biaya_pekerja'];?></span>
			<input type="hidden" name="biaya_pekerja" value="<?=$biaya_pekerja;?>" />
        </span></li>
    </ul>
    <ul id="tandan">
		<li class="header"><span>Tandan</span></li>
		<li class="desc">
			<span class="label_tandan">Label Tandan</span>
			<span class="berat_tandan">Berat Tandan</span>
		</li>
		<?php
		$no = 0;	
		foreach($item->label_tandan['label_tandan'] as $i=>$v){
			$no++;
			$nama    = $v;
			$berat   = $item->label_tandan['berat_tandan'][$i];
		?>
		<li><span>
			<label><?=$no;?></label>
			<span class="confirm_label_tandan"><?=$nama;?></span>
			<span class="confirm_berat_tandan"><?=$berat;?></span>
			<input type="hidden" id="label_tandan[]" name="label_tandan[]" value="<?=$nama;?>"/>
			<input type="hidden" id="berat_tandan[]" name="berat_tandan[]" value="<?=$berat;?>"/>
		</span>
		<?php 
		}
		?>
    </ul>
	</ul>
		<ul>
		<li class="header"><span>Simpan</span></li>
		<li class="button"><span>
			<input type="submit" name="submit" id="submit" value="Simpan Data" class="simpan"/>
			<a class="cancel" href="#" onclick="javascript:history.go(-1);">Batalkan</a>
		</span></li>
	</ul>
</form>